<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"><head>
  <meta charset="utf-8">
  <title>{$title}</title>
  <meta name="apple-mobile-web-app-capable" content="yes">
  <meta name="apple-mobile-web-app-status-bar-style" content="default">
  <meta http-equiv="X-UA-Compatible" content="IE=edge;chrome=1">
  <link href="/static/css/blog_index/boilerplate.css" rel="stylesheet" type="text/css">
  <link href="/static/css/blog_index/base.css" rel="stylesheet" type="text/css">
  <link rel="shortcut icon" href="">
  <script src="/static/js/blog_index/jquery-1.9.1.min.js"></script>
<!--[if lt IE 9]>
<script src="/static/js/html5.js"></script>
<script type="text/javascript" src="/static/js/selectivizr-min.js"></script>
<![endif]-->
<!--[if lt IE 7]>
<script src="/static/js/minmax.js"></script>
<![endif]-->
<script type="text/javascript" src="/static/js/blog_index/picobox.js"></script>
  <script type="text/javascript" src="/static/js/blog_index/picobox_beauty.js"></script>
  <link rel="stylesheet" href="/static/css/blog_index/picobox.css" type="text/css"  />
  <link rel="stylesheet" href="/static/css/blog_index/picobox_beauty.css" type="text/css"  />
  <script language="javascript">
function doCheck(ischecked) {
	$('input.mch').each(function(i){
		this.checked = ischecked;
	});
}
function getChecked() {
	var ids = '';
	$('input.mch').each(function(i){
		if (this.checked) {
			ids += this.value + ',';
		}
	});
	if (ids != '') {
		ids = ids.substr(0, ids.length-1);
	}
	return ids;
}
function confirmDel() {
	var ids = getChecked();
	if (ids.length == '') {
		alert('请选择要删除的记录。');
		return false;
	}
	if (!confirm('真的要删除选中的记录吗？')) {
		return false;
	}
	return true;
}
function welcomeText(username) {
	  var time = ['子时', '丑时', '寅时', '卯时', '辰时', '巳时', '午时', '未时', '申时', '酉时', '戌时', '亥时'];
	  var text = ['夜半销魂，谁人歌', '雄鸡未鸣，身未起', '风雨如晦，平旦出', '旭日东升，无往复', '君子勿劳，朝食饱', '鸡栖于莳，河清定', '善行无迹，恒德足', '日过中天，骄未散 ', '哺鹊进食，斜阳归', '鸡栖于埘，日沉坡', '日暮将至，归田园', '人定归本，早安眠'];
	  var arr_week = ['', '星期一','星期二','星期三','星期四','星期五','星期六','星期日'];
	  hour = new Date().getHours();
	  year = new Date().getFullYear();
	  month = new Date().getMonth();
	  dayx = new Date().getDate();
	  monthx = month+1;
	  week = arr_week[new Date().getDay()];
	  
	  hourx = Math.ceil(hour/2);
	  if (hourx == 12) { hourx = 0; }
	  var today = year+"年"+monthx+"月"+dayx+"日 "+week;
	  second = new Date().getSeconds();
	  if(second % 2 == 0){
	   welcome = "<span class=\"greeting\" title=\""+today+"\"><strong></strong>&nbsp;&nbsp;</span>";
	  }
	  else{
	   welcome = "<span class=\"greeting\" title=\""+today+"\"><strong>" + time[hourx] +  "</strong>&nbsp;&nbsp;" + text[hourx] + "</span>";
	  }
	  return welcome;
	}
</script>
</head>
<body>
        		<div class="header">
  			<div class="header-inner">
    			<div class="user-info">
      				<div class="user-avatar">
      					<span class="pie" title="">
      						<a href="http://home.blogbus.com/edit/">
      							<img src="/static/images/avatar_12855194_96.jpg" alt="" class="pie">
      						</a>
      					</span>
      				</div>
      				<h2 class="user-name">blogbus_ncIE4037 &nbsp;<a href='http://passport.blogbus.com/logout?goto=http%3A%2F%2Fhome.blogbus.com%2Flogout' style='color:#666'>退出</a></h2>
      				<p id="prompt-msg"><script type="text/javascript">document.write(welcomeText("blogbus_ncIE4037"))</script></p>
    			</div>
                <div class="utilities">
                    <ul>
                        <li class="dashboard"><a href="{:url('index/User/')}"><span class="pie icon"><span class="pie indicator" id="msgcount">0</span></span>管理中心</a></li>
                        <li class="new-entry"><a href="{:url('index/blog/newblog')}"><span class="pie icon"></span>新日志</a></li>
                        <li class="blog-list"><a href="{:url('index/blog/index')}"><span class="pie icon"></span>博客</a></li>
                        <li class="album-list"><a href="{:url('index/Album/index')}"><span class="pie icon"></span>相册</a></li>
                        <li class="friend-list"><a href="{:url('index/Friend/index')}"><span class="pie icon"></span>好友</a></li>
                        <li class="events"><a href="#"><span class="pie icon"></span>活动</a></li>
                        <li class="vip"><a href="{:url('index/vip/index')}"><span class="pie icon"></span>VIP</a></li>
                        <li class="home"><a href="{:url('index/index/index')}"><span class="pie icon"></span>首页</a></li>
                    </ul>
                </div>
  			</div>			
		</div>
<script type="text/javascript">
(function (){
$('#allSubMenus').css('display','none');
var _menuEff={};
_menuEff.cur=null;
function switchMenu(id) {
var menu_html = (_menuEff.cur.hasClass('menuBlogClass') && id=='menuBlog' && menu) ? menu : $('#allSubMenus #'+id).html();
$('#appSubMenuBlock').html(menu_html).css('paddingLeft', $('#allSubMenus #'+id).css('paddingLeft'));
}
$('ul.menus li').hover(function(e){
        _menuEff.cur=_menuEff.cur||$('ul.menus li.actived');
        $('ul.menus li').removeClass('actived');
        var id = 'menu'+this.className.match(/menu(\w+)Class/)[1];
        switchMenu(id);
        $(this).addClass('actived');
},
function(e){
        if (e.relatedTarget.tagName!='DIV') {
                return;
        }
        if (_menuEff.cur && !$(e.relatedTarget).hasClass('subMenus')) {
                $('ul.menus li').removeClass('actived');
                _menuEff.cur.addClass('actived');
                var id = _menuEff.cur[0].className.match(/(menu\w+)Class/)[1];
                switchMenu(id);
        }
});
$('div.mainNavi').mouseout(function(e){
        if (_menuEff.cur && e.relatedTarget.id=='wrapper') {
                $('ul.menus li').removeClass('actived');
                _menuEff.cur.addClass('actived');
                var id = _menuEff.cur[0].className.match(/(menu\w+)Class/)[1];
                switchMenu(id);
        }
});
})();
//$('#header').append('<div class="new"></div>');
</script>
   
	<!--main start-->
		<style>
	<!--
		.utilities ul li.blog-list:before {
		    z-index: 1;
		    content:'';
		    position: absolute;
		    left:40%;
		    top:84%;
		    width: 0px;
		    height: 0px;
		    border-style:solid; 
		    border-width:7px;
		    border-color: transparent transparent #90c044 transparent;
		}   /*...伪元素实现三角...*/
		
		.utilities ul li.blog-list a { color:#90c044; }
		.utilities ul li.blog-list a .icon { background-color:#90c044; }
	-->
	</style>
	<link href="/static/css/blog_index/blog.css" rel="stylesheet" type="text/css">
    <div class="nav">
        <div class="container">
            <ul>
                <li class="xinrizhi"><a href="" class="pie">写新日志</a></li>
                <li class="rizhi"><a href="" class="pie">日志</a></li>
                <li class="moban"><a href="" class="pie">模板</a></li>
                <li class="pinlun"><a href="" class="pie">评论</a></li>
                <li class="yinyong"><a href="" class="pie">引用</a></li>
                <li class="fenglei"><a href="" class="pie">分类</a></li>
                <li class="biaoqian"><a href="" class="pie">标签</a></li>
                <li class="lianjie"><a href="" class="pie">友情链接</a></li>
                <li class="shezhi"><a href="" class="pie">博客设置</a></li>
                <li class="tongji"><a href="" class="pie">访问统计</a></li>
                <li class="quanbu"><a href="" class="pie">全部博客</a></li>
            </ul>
        </div>
    </div>
<style type="text/css">
.nav ul li.quanbu a { 
  background:#fff; 
  color:#90c044; 
  -webkit-border-radius:5px 5px 0 0; 
  -moz-border-radius:5px 5px 0 0; 
  border-radius:5px 5px 0 0; 
}
.current-blog {
	margin-left: 20px; 
	margin-top:20px; }
.current-blog span { margin-right: 60px;}
.content {padding-top:20px;padding-bottom: 120px;}
</style>
<script type="text/javascript">
var result=[false,false,false];
function check_name() {
       var s = $('#item_blogname input').val();
       s=s.replace(/^\s+/, '').replace(/\s+$/, '');
       if (s.length>0) {
              $('#item_blogname span.valid').show();
              $('#item_blogname span.fail').hide();
              result[0] = true;
       }else{
              $('#item_blogname span.valid').hide();
              $('#item_blogname span.fail').show();
              result[0] = false;
       }
}
function check_domain(){
       var s = $('#item_domain input').val();
       s=s.replace(/^\s+/, '').replace(/\s+$/, '').toLowerCase();
       var reg=/^[a-z0-9][a-z0-9-]{2,28}[a-z0-9]$/;
       if (!reg.test(s)) {
              $('#item_domain span.valid').hide();
              $('#item_domain span.fail').text('域名不符合规则').show();
              result[1] = false;
       }else{
              var url='http://blog.home.blogbus.com/api/blogs/'+s+'.blogbus.com/domain_exists';
              $.getJSON(url, {}, function(exists){
                     if(exists){
                            $('#item_domain span.valid').hide();
                            $('#item_domain span.fail').text('已被使用，换一个试试看').show();
                            result[1]= false;
                     }else{
                            $('#item_domain span.valid').show();
                            $('#item_domain span.fail').hide();
                            result[1] = true;
                     }
              });
       }
}
function check_captcha() {
       var s = $('#item_captcha input').val();
       s=s.replace(/^\s+/, '').replace(/\s+$/, '');
       if (s.length>0) {
              $('#item_captcha span.valid').show();
              $('#item_captcha span.fail').hide();
              result[2] = true;
       }else{
              $('#item_captcha span.valid').hide();
              $('#item_captcha span.fail').show();
              result[2] = false;
       }       
}
function check_all() {
       var ret = result[0] && result[1] && result[2];
       return ret;
}
function reload_captcha() {
       $('#captcha').attr('src', 'http://blog.home.blogbus.com/captcha.php?'+(new Date().valueOf()));
}
</script>
<div class="container">
<!--title start-->
<!--title end-->   
<!--main start-->
  <div class="content">
  	<div><h2>创建博客</h2></div>
    <div id="creatBlog">
       <form method="post" action="/blog/addBlogName">
           <input type="hidden" name="user_id" value="{$id}">
        <ul>
            <li id="item_blogname">
                <div class="f1"><strong>博客名称：</strong></div>
                <div class="f2"><input type="text" name="name" maxlength="30" class="text" gtbfieldid="3" onblur="check_name();" /></div>
                <div class="f3"><span class="valid" style="display:none"></span><span class="fail" style="display:none">请给博客起个名字</span></div>
                <div class="f4">为你的博客起个名字，注册完成后，可以修改博客名称</div>
            </li>
            <li id="item_domain">
                <div class="f1"><strong>博客域名：</strong></div>
                <div class="f2">http:// <input type="text" name="domain" maxlength="30" class="text" gtbfieldid="4"  onblur="check_domain();"/> .blogcloud.com</div>
                <div class="f3"><span class="valid" style="display:none"></span><span class="fail" style="display:none"></span></div>
                <div class="f4">可由4-20位英文字母或数字组成，中间可包含“-”号，注册成功后，不可修改</div>
            </li>
            <li id="item_captcha" class="validCode">
                <div class="f1"><strong>验证码：</strong></div>
                <div class="f2"><span onclick="reload_captcha();return false;" ><img onclick="reload_captcha()" id="captcha" src=""><a href="#">换一张</a></span></div>
                <div class="clearfix"></div>
                <div class="f5">
                <input type="text" name="captcha" maxlength="6" class="text" gtbfieldid="5" onblur="check_captcha();" />
                </div>
                <div class="f3"><span class="valid" style="display:none"></span><span class="fail" style="display:none">请输入验证码</span></div>
                <div class="f4">不区分大小写</div>
            </li>
        </ul>
        <div>
            <input class="button" type="submit" value="创建博客" class="button" id="submit"/>
        </div>
        </form>
    </div>
  </div>
<!--main end-->
</div>
<script type="text/javascript">
reload_captcha();
</script>
		<script type="text/javascript" src="other/.com/msg_count"></script>
	<script type="text/javascript">
	$('body').click(function(e){
	if(!$(e.target).hasClass('pub_subLink') && !$(e.target).parents().hasClass('pub_dropmenu')){
	$('.pub_dropmenu').slideUp('fast');
	}
	})
	</script>
	<!--main end--><!--
	<footer class="footer">
  			<div class="copyright">&copy; 2002 - 2017 BlogBus.com, All Rights Reserved. 博客大巴 版权所有
  			  	<a href="javascript:void(0)" onclick="Picobox.showIFrameBox('反馈意见','http://home.blogbus.com/feedback?url=http%3A%2F%2Fblog.home.blogbus.com%2Fblogs%2Fform',{width:400,height:200});">反馈意见</a>
  			</div>
	</footer>
	-->
	<div id="footer" class="footer">
<div class="utilityMenu">
	<a target="_blank" href="http://news.blogbus.com/">媒体报道</a>&nbsp;|&nbsp;
	<a target="_blank" href="http://www.blogbus.com/about/about.html">关于我们</a>&nbsp;|&nbsp;
	<a target="_blank" href="http://www.blogbus.com/about/jobs/jobs.html">工作机会</a>&nbsp;|
	&nbsp;<a target="_blank" href="http://www.blogbus.com/about/blogserviceterm.html">相关法律</a>&nbsp;|
	&nbsp;<a target="_blank" href="http://www.blogbus.com/about/adservice.html">广告服务</a>&nbsp;|
	&nbsp;<a target="_blank" href="http://passport.blogbus.com/register_form">申请博客</a>&nbsp;|&nbsp;
	<a target="_blank" href="http://www.blogbus.com/about/sitemap.html">网站地图</a>&nbsp;|&nbsp;<a target="_blank" href="http://www.blogbus.com/about/partners.html">合作伙伴</a>
</div>
<div class="copyright">&copy; 2002-2017 BlogBus.com, All Rights Reserved. 博客大巴  版权所有  沪ICP B2-20080056号 <a href="javascript:void(0)" onclick="Picobox.showIFrameBox('反馈意见','http://home.blogbus.com/feedback?url=http%3A%2F%2Fblog.home.blogbus.com%2Fblogs%2Fform',{width:400,height:200});">反馈意见</a></div>
</div>
<div class="ajaxInfo msg_success" style="display:none;" id="flashMessage">
        <div class="message"></div>
</div>
<script type="text/javascript">
function showFlashMessage(message) {
    el = $('#flashMessage .message');
    el.html(message);
    $('#flashMessage').fadeIn();
    setTimeout(function(){$('#flashMessage').fadeOut('fast')}, 3000);
}
</script>
	
	<!--帮助-->
	<div class="pie page-help">
  				<div class="pie help-inner">
   	 			<ul><li><a target="_blank" href="http://bangzhuzhongxin.blogbus.com/logs/31013353.html">新手小贴士</a></li><li><a target="_blank" href="http://bangzhuzhongxin.blogbus.com/logs/30238766.html">如何寻找好友</a></li><li><a target="_blank" href="http://bangzhuzhongxin.blogbus.com/logs/4519399.html">如何更换模板</a></li><li><a target="_blank" href="http://bangzhuzhongxin.blogbus.com/logs/29668095.html">如何设置默认博客</a></li></ul>
	  			</div>
				</div>
<div style="display:none;">
</div>
	<div style='display:none'>
		<script type="text/javascript">
				var _bdhmProtocol = (("https:" == document.location.protocol) ? " https://" : " http://");
		document.write(unescape("%3Cscript src='" + _bdhmProtocol + "hm.baidu.com/h.js%3F8452dbf205b0f6608661b0fdea22c741' type='text/javascript'%3E%3C/script%3E"));
				var _bdhmProtocol = (("https:" == document.location.protocol) ? " https://" : " http://");
		document.write(unescape("%3Cscript src='" + _bdhmProtocol + "hm.baidu.com/h.js%3F66e39c4b330e47cc1e523676f29c6402' type='text/javascript'%3E%3C/script%3E"));
				
		</script>
	</div>
	</body>
	</html>
